import {
	ElMessage,
	ElMessageBox,
	ElButton,
	ElTree,
	ElScrollbar,
	ElTableColumn,
	ElTable,
	ElPagination,
	ElDialog,
	ElInput,
	ElFormItem,
	ElOption,
	ElSelect,
	ElForm,
	ElPopover,
	ElDropdown,
	ElDropdownMenu,
	ElDropdownItem,
	ElCheckboxButton,
	ElCheckboxGroup,
	ElCheckbox,
	ElSwitch
} from 'element-plus'
import 'element-plus/dist/index.css'

export default {
	install(vue) {
		vue.use(ElButton)
		vue.use(ElTree)
		vue.use(ElScrollbar)
		vue.use(ElTableColumn)
		vue.use(ElTable)
		vue.use(ElPagination)
		vue.use(ElDialog)
		vue.use(ElInput)
		vue.use(ElFormItem)
		vue.use(ElOption)
		vue.use(ElSelect)
		vue.use(ElForm)
		vue.use(ElPopover)
		vue.use(ElDropdown)
		vue.use(ElDropdownMenu)
		vue.use(ElDropdownItem)
		vue.use(ElCheckboxButton)
		vue.use(ElCheckboxGroup)
		vue.use(ElCheckbox)
		vue.use(ElSwitch)

		vue.config.globalProperties.$alert = ElMessageBox.alert
		vue.config.globalProperties.$confirm = ElMessageBox.confirm
		vue.config.globalProperties.$message = ElMessage
	}
}
